package com.fitness.entity;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 消费记录实体类，对应数据库中的消费记录表
 */
public class Consumption implements Serializable {
    private Integer consumptionId; // 消费ID，对应数据库 消费ID 字段
    private Integer memberId; // 会员ID，对应数据库 会员ID 字段
    private Integer projectId; // 项目ID，对应数据库 项目ID 字段
    private Integer managerId; // 经理ID，对应数据库 经理ID 字段
    private Timestamp consumeTime; // 消费时间，对应数据库 消费时间 字段
    private Double originalAmount; // 原价金额，对应数据库 原价金额 字段
    private Double discountAmount; // 折扣金额，对应数据库 折扣金额 字段
    private Double actualAmount; // 实际金额，对应数据库 实际金额 字段

    // Getter 和 Setter 方法
    public Integer getConsumptionId() {
        return consumptionId;
    }

    public void setConsumptionId(Integer consumptionId) {
        this.consumptionId = consumptionId;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public Integer getManagerId() {
        return managerId;
    }

    public void setManagerId(Integer managerId) {
        this.managerId = managerId;
    }

    public Timestamp getConsumeTime() {
        return consumeTime;
    }

    public void setConsumeTime(Timestamp consumeTime) {
        this.consumeTime = consumeTime;
    }

    public Double getOriginalAmount() {
        return originalAmount;
    }

    public void setOriginalAmount(Double originalAmount) {
        this.originalAmount = originalAmount;
    }

    public Double getDiscountAmount() {
        return discountAmount;
    }

    public void setDiscountAmount(Double discountAmount) {
        this.discountAmount = discountAmount;
    }

    public Double getActualAmount() {
        return actualAmount;
    }

    public void setActualAmount(Double actualAmount) {
        this.actualAmount = actualAmount;
    }

    // 重写 toString 方法，方便打印查看对象内容
    @Override
    public String toString() {
        return "Consumption{" +
                "consumptionId=" + consumptionId +
                ", memberId=" + memberId +
                ", projectId=" + projectId +
                ", managerId=" + managerId +
                ", consumeTime=" + consumeTime +
                ", originalAmount=" + originalAmount +
                ", discountAmount=" + discountAmount +
                ", actualAmount=" + actualAmount +
                '}';
    }
}